﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010E9 RID: 4329
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneSummonUnitInfo : IMessage<SceneSummonUnitInfo>, IMessage, IEquatable<SceneSummonUnitInfo>, IDeepCloneable<SceneSummonUnitInfo>, IBufferMessage
	{
		// Token: 0x170036DE RID: 14046
		// (get) Token: 0x0600C1C1 RID: 49601 RVA: 0x0020C837 File Offset: 0x0020AA37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneSummonUnitInfo> Parser
		{
			get
			{
				return SceneSummonUnitInfo._parser;
			}
		}

		// Token: 0x170036DF RID: 14047
		// (get) Token: 0x0600C1C2 RID: 49602 RVA: 0x0020C83E File Offset: 0x0020AA3E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneSummonUnitInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170036E0 RID: 14048
		// (get) Token: 0x0600C1C3 RID: 49603 RVA: 0x0020C850 File Offset: 0x0020AA50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneSummonUnitInfo.Descriptor;
			}
		}

		// Token: 0x0600C1C4 RID: 49604 RVA: 0x0020C857 File Offset: 0x0020AA57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneSummonUnitInfo()
		{
		}

		// Token: 0x0600C1C5 RID: 49605 RVA: 0x0020C86C File Offset: 0x0020AA6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneSummonUnitInfo(SceneSummonUnitInfo other) : this()
		{
			this.lifeTimeMs_ = other.lifeTimeMs_;
			this.casterEntityId_ = other.casterEntityId_;
			this.triggerNameList_ = other.triggerNameList_.Clone();
			this.summonUnitId_ = other.summonUnitId_;
			this.attachEntityId_ = other.attachEntityId_;
			this.createTimeMs_ = other.createTimeMs_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C1C6 RID: 49606 RVA: 0x0020C8DD File Offset: 0x0020AADD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneSummonUnitInfo Clone()
		{
			return new SceneSummonUnitInfo(this);
		}

		// Token: 0x170036E1 RID: 14049
		// (get) Token: 0x0600C1C7 RID: 49607 RVA: 0x0020C8E5 File Offset: 0x0020AAE5
		// (set) Token: 0x0600C1C8 RID: 49608 RVA: 0x0020C8ED File Offset: 0x0020AAED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int LifeTimeMs
		{
			get
			{
				return this.lifeTimeMs_;
			}
			set
			{
				this.lifeTimeMs_ = value;
			}
		}

		// Token: 0x170036E2 RID: 14050
		// (get) Token: 0x0600C1C9 RID: 49609 RVA: 0x0020C8F6 File Offset: 0x0020AAF6
		// (set) Token: 0x0600C1CA RID: 49610 RVA: 0x0020C8FE File Offset: 0x0020AAFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CasterEntityId
		{
			get
			{
				return this.casterEntityId_;
			}
			set
			{
				this.casterEntityId_ = value;
			}
		}

		// Token: 0x170036E3 RID: 14051
		// (get) Token: 0x0600C1CB RID: 49611 RVA: 0x0020C907 File Offset: 0x0020AB07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<string> TriggerNameList
		{
			get
			{
				return this.triggerNameList_;
			}
		}

		// Token: 0x170036E4 RID: 14052
		// (get) Token: 0x0600C1CC RID: 49612 RVA: 0x0020C90F File Offset: 0x0020AB0F
		// (set) Token: 0x0600C1CD RID: 49613 RVA: 0x0020C917 File Offset: 0x0020AB17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SummonUnitId
		{
			get
			{
				return this.summonUnitId_;
			}
			set
			{
				this.summonUnitId_ = value;
			}
		}

		// Token: 0x170036E5 RID: 14053
		// (get) Token: 0x0600C1CE RID: 49614 RVA: 0x0020C920 File Offset: 0x0020AB20
		// (set) Token: 0x0600C1CF RID: 49615 RVA: 0x0020C928 File Offset: 0x0020AB28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AttachEntityId
		{
			get
			{
				return this.attachEntityId_;
			}
			set
			{
				this.attachEntityId_ = value;
			}
		}

		// Token: 0x170036E6 RID: 14054
		// (get) Token: 0x0600C1D0 RID: 49616 RVA: 0x0020C931 File Offset: 0x0020AB31
		// (set) Token: 0x0600C1D1 RID: 49617 RVA: 0x0020C939 File Offset: 0x0020AB39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong CreateTimeMs
		{
			get
			{
				return this.createTimeMs_;
			}
			set
			{
				this.createTimeMs_ = value;
			}
		}

		// Token: 0x0600C1D2 RID: 49618 RVA: 0x0020C942 File Offset: 0x0020AB42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneSummonUnitInfo);
		}

		// Token: 0x0600C1D3 RID: 49619 RVA: 0x0020C950 File Offset: 0x0020AB50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneSummonUnitInfo other)
		{
			return other != null && (other == this || (this.LifeTimeMs == other.LifeTimeMs && this.CasterEntityId == other.CasterEntityId && this.triggerNameList_.Equals(other.triggerNameList_) && this.SummonUnitId == other.SummonUnitId && this.AttachEntityId == other.AttachEntityId && this.CreateTimeMs == other.CreateTimeMs && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C1D4 RID: 49620 RVA: 0x0020C9E0 File Offset: 0x0020ABE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LifeTimeMs != 0)
			{
				num ^= this.LifeTimeMs.GetHashCode();
			}
			if (this.CasterEntityId != 0U)
			{
				num ^= this.CasterEntityId.GetHashCode();
			}
			num ^= this.triggerNameList_.GetHashCode();
			if (this.SummonUnitId != 0U)
			{
				num ^= this.SummonUnitId.GetHashCode();
			}
			if (this.AttachEntityId != 0U)
			{
				num ^= this.AttachEntityId.GetHashCode();
			}
			if (this.CreateTimeMs != 0UL)
			{
				num ^= this.CreateTimeMs.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C1D5 RID: 49621 RVA: 0x0020CA91 File Offset: 0x0020AC91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C1D6 RID: 49622 RVA: 0x0020CA99 File Offset: 0x0020AC99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C1D7 RID: 49623 RVA: 0x0020CAA4 File Offset: 0x0020ACA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SummonUnitId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.SummonUnitId);
			}
			if (this.AttachEntityId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.AttachEntityId);
			}
			if (this.LifeTimeMs != 0)
			{
				output.WriteRawTag(56);
				output.WriteInt32(this.LifeTimeMs);
			}
			this.triggerNameList_.WriteTo(ref output, SceneSummonUnitInfo._repeated_triggerNameList_codec);
			if (this.CasterEntityId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.CasterEntityId);
			}
			if (this.CreateTimeMs != 0UL)
			{
				output.WriteRawTag(120);
				output.WriteUInt64(this.CreateTimeMs);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C1D8 RID: 49624 RVA: 0x0020CB64 File Offset: 0x0020AD64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LifeTimeMs != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.LifeTimeMs);
			}
			if (this.CasterEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CasterEntityId);
			}
			num += this.triggerNameList_.CalculateSize(SceneSummonUnitInfo._repeated_triggerNameList_codec);
			if (this.SummonUnitId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SummonUnitId);
			}
			if (this.AttachEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AttachEntityId);
			}
			if (this.CreateTimeMs != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.CreateTimeMs);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C1D9 RID: 49625 RVA: 0x0020CC18 File Offset: 0x0020AE18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneSummonUnitInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LifeTimeMs != 0)
			{
				this.LifeTimeMs = other.LifeTimeMs;
			}
			if (other.CasterEntityId != 0U)
			{
				this.CasterEntityId = other.CasterEntityId;
			}
			this.triggerNameList_.Add(other.triggerNameList_);
			if (other.SummonUnitId != 0U)
			{
				this.SummonUnitId = other.SummonUnitId;
			}
			if (other.AttachEntityId != 0U)
			{
				this.AttachEntityId = other.AttachEntityId;
			}
			if (other.CreateTimeMs != 0UL)
			{
				this.CreateTimeMs = other.CreateTimeMs;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C1DA RID: 49626 RVA: 0x0020CCB5 File Offset: 0x0020AEB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C1DB RID: 49627 RVA: 0x0020CCC0 File Offset: 0x0020AEC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 24U)
					{
						this.SummonUnitId = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.AttachEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.LifeTimeMs = input.ReadInt32();
						continue;
					}
				}
				else
				{
					if (num == 98U)
					{
						this.triggerNameList_.AddEntriesFrom(ref input, SceneSummonUnitInfo._repeated_triggerNameList_codec);
						continue;
					}
					if (num == 104U)
					{
						this.CasterEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.CreateTimeMs = input.ReadUInt64();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004E46 RID: 20038
		private static readonly MessageParser<SceneSummonUnitInfo> _parser = new MessageParser<SceneSummonUnitInfo>(() => new SceneSummonUnitInfo());

		// Token: 0x04004E47 RID: 20039
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004E48 RID: 20040
		public const int LifeTimeMsFieldNumber = 7;

		// Token: 0x04004E49 RID: 20041
		private int lifeTimeMs_;

		// Token: 0x04004E4A RID: 20042
		public const int CasterEntityIdFieldNumber = 13;

		// Token: 0x04004E4B RID: 20043
		private uint casterEntityId_;

		// Token: 0x04004E4C RID: 20044
		public const int TriggerNameListFieldNumber = 12;

		// Token: 0x04004E4D RID: 20045
		private static readonly FieldCodec<string> _repeated_triggerNameList_codec = FieldCodec.ForString(98U);

		// Token: 0x04004E4E RID: 20046
		private readonly RepeatedField<string> triggerNameList_ = new RepeatedField<string>();

		// Token: 0x04004E4F RID: 20047
		public const int SummonUnitIdFieldNumber = 3;

		// Token: 0x04004E50 RID: 20048
		private uint summonUnitId_;

		// Token: 0x04004E51 RID: 20049
		public const int AttachEntityIdFieldNumber = 4;

		// Token: 0x04004E52 RID: 20050
		private uint attachEntityId_;

		// Token: 0x04004E53 RID: 20051
		public const int CreateTimeMsFieldNumber = 15;

		// Token: 0x04004E54 RID: 20052
		private ulong createTimeMs_;
	}
}
